﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Domin
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("Peoples")]
    public class Peoples
    {
        [Key]
        public int PId { get; set; }
        public string PName { get; set; }
        public int RId { get; set; }
        public int Age { get; set; }
        public string Trem { get; set; }//学习证明
        public string Cred { get; set; }//宗教信仰
        public string Phone { get; set; }
        public string Haves { get; set; }
        [ForeignKey("RId")]
        public virtual Roles Roles { get; set; }
    }
}
